/*
 * FileName：Constants.java 
 * <p>
 * Copyright (c) 2017-2020 <a href="">hermit(1154808491@qq.com)</a>.
 * <p>
 * Licensed under the GNU General Public License, Version 3 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.gnu.org/licenses/gpl-3.0.html
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * 
 */
package com.koine.common;

import java.util.Arrays;
import java.util.List;

/**
 * @author : hermit
 */

public class Constants {

    /**
     * 图片资源状态：0：未引用	1：已被引用
     */
    public static final Integer IMG_FLAG0 = 0;
    public static final Integer IMG_FLAG1 = 1;
    public static final String SYSTEM_NAME = "SmartAdmin";
    public static final String SYSTEM_VERSION = "2.0.0";
    public static final String SYSTEM_UPDATE_TIME = "2019-01-01";

    /********************************* 操作信息常量 ***********************************/
    /**
     * 成功提示
     **/
    public static final String MSG_SUCCESS = "信息操作成功!";

    /**
     * 保存成功提示
     **/
    public static final String MSG_SUCCESS_SAVE = "信息添加成功!";

    /**
     * 修改成功提示
     **/
    public static final String MSG_SUCCESS_UPDATE = "信息修改成功!";

    /**
     * 删除成功提示
     **/
    public static final String MSG_SUCCESS_DELETE = "信息删除成功!";

    /**
     * 操作失败提示
     **/
    public static final String MSG_ERROR = "服务器异常，操作失败!";

    /**
     * 删除失败提示
     **/
    public static final String MSG_ERROR_DELETE = "该节点含有子节点";

    /**
     * 菜单类型-click
     **/
    public static final String MENU_CLICK = "click";
    /**
     * 菜单类型-view
     **/
    public static final String MENU_VIEW = "view";
    /**
     * 菜单类型-scancode_push
     **/
    public static final String MENU_SCANCODE_PUSH = "scancode_push";
    /**
     * 菜单类型-scancode_waitmsg
     **/
    public static final String MENU_SCANCODE_WAITMSG = "scancode_waitmsg";
    /**
     * 菜单类型-pic_sysphoto
     **/
    public static final String MENU_PIC_SYSPHOTO = "pic_sysphoto";
    /**
     * 菜单类型-pic_photo_or_album
     **/
    public static final String MENU_PIC_PHOTO_OR_ALBUM = "pic_photo_or_album";
    /**
     * 菜单类型-pic_weixin
     **/
    public static final String MENU_PIC_WEIXIN = "pic_weixin";
    /**
     * 菜单类型-pic_location_selectn
     **/
    public static final String MENU_LOCATION_SELECT = "location_select";
    /**
     * 菜单类型-miniprogram
     **/
    public static final String MENU_MINIPROGRAM = "miniprogram";
    /**
     * 菜单类型-需要设置key的菜单类型
     **/
    public static final List<String> MENU_NEED_KEY = Arrays.asList("click", "scancode_push", "scancode_waitmsg", "pic_sysphoto", "pic_photo_or_album", "pic_weixin", "location_select");
    /**
     * 图文类型-1单图文2多图
     **/
    public static final Integer MULT_TYPE_SINGLE = 1;

    /**
     * 图文类型-1单图文2多图
     **/
    public static final Integer MULT_TYPE_MORE = 2;


    /********** 以下为系统用常量 *********************/

    /********* 状态： 0正常 1禁用 *************/
    public static final String STATE_ENABLE = "0";

    public static final String STATE_DISABLE = "1";

    public static final String STATE_LOCK = "2";

    public static final String LEAF_YES = "1";

    public static final String LEAF_NO = "0";

    public static final String SUCESS_FLAG = "0";

    public static final String FAIL_FLAG ="1";

    public static final String DEL_FLAG_NORMAL = "0";

    public static final String DEL_FLAG_DELETE = "1";

    public static final String SYSTEM_FLAG_YES = "1";

    public static final String SYSTEM_FLAG_NO = "0";

    public static final String SYSTEM_USER_TYPE = "1";
    public static final String TEMP_USER_TYPE = "3";

    public static final String EXPAND_NO = "0";
    public static final String EXPAND_YES = "1";

    public static final String IFRAME_NO = "0";
    public static final String IFRAME_YES = "1";

    //1男 2女 3未知
    public static final String SEX_MAN = "1";
    public static final String SEX_WOMAN = "2";
    public static final String SEX_NO = "3";
    /********* 提示 *************/
    public static final String ERROR_TIPS_SAVE = "信息添加失败!";

    public static final String ERROR_TIPS_UPDATE = "信息修改失败!";

    public static final String ERROR_TIPS_DELETE = "信息删除失败!";

    /********* 登录失败提示 *************/
    public static final String USER_LOGIN_NAMEORPWDERRO = "用户名或密码错误!";

    public static final String USER_LOGIN_DISABLED = "用户被禁用，请联系管理员!";

    public static final String USER_LOGIN_LOCKING = "用户被锁定，请联系管理员!";

    /**
     * 用户信息 Session名称
     */
    public static final String SESSION_USER = "session_user";

    /**
     * 登录验证码
     */
    public static final String SESSION_VERIFY_CODE = "verificationCode";

    /**
     * 登录失败次数
     */
    public static final String LOGIN_ERROR_COUNT = "loginErrorCount";

    /**
     * 登录邮箱验证码
     */
    public static final String SESSION_MAIL_CODE = "mailCode";

    /**
     * 用户当前微信账号 Session名称
     */
    public static final String SESSION_ACCOUNT = "session_account";

    /**
     * 用户默认密码
     */
    public static final String USER_DEFAULT_PASSWORD = "123321";

    /**
     * 菜单列表
     */
    public static final String SESSION_MENU_LIST = "menuList";

    public static final int PAGE_SIZE_MAX = 9999;

    public static final String ROOT_NODE_ID = "0";

    public static final String ROOT_NODE_NAME = "根节点";

    public static final String ROOT_NODE_PARENT_ID = "-1";

    /**
     * cookie过期时间
     */
    public static final int COOKIE_MAXAGE = 10 * 365 * 24 * 60 * 60;

    /**
     * 常量-客户部门
     */
    public static final String CUSTOMER_DEPT_ID = "002";


    /**
     * 常量-客户角色
     */
    public static final String CUSTOMER_ROLE_ID = "c0f7d4e9bc534ac9a3b9d516b1b58f92";

}
